import request from "@/request/request.js";

export const login = (phone,code) => {
    return request({
        url: '/sysuser/login',
        method: 'post',
        params:{
            phone:phone,
            code:code
        }
    })
}
export const getCodePhone=(phone)=>{
    return request({
        url: '/sysuser/getCode',
        method: 'get',
        params:{
            phone:phone
        }
    })
}
export const logout=()=>{
    return request({
        url: '/sysuser/logout',
        method: 'delete'
    })
}